#include "pch.h"
#include "TextureLibrary.h"

TextureLibrary::TextureLibrary()
{
	this->textures = new List();
}

TextureLibrary::~TextureLibrary()
{
	delete this->textures;
}

// Adds a texrure to the libray and returns its index
int TextureLibrary::Add(Texture* texture)
{
	return this->textures->Add(texture);
}

// Removes a texture from the libray
void TextureLibrary::Remove(Texture* texture)
{
	this->textures->Remove(texture);
}

// Gets the texturw from the library given the Texture ID
Texture* TextureLibrary::GetTexture(int TextureID)
{
	return (Texture*)this->textures->GetItem(TextureID);
}